<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=0.6,maximum-scale=1,user-scalable=no" />
    <title>上门系统</title>
	{js href="__ROOT__/static/user/js/mui.min.js" /}
	{js href="__ROOT__/static/user/fonts/iconfont.js" /}
	{js href="__ROOT__/static/user/js/jquery.js" /}
	{js href="__ROOT__/static/user/js/umxTool.js" /}
	{css href="__ROOT__/static/user/css/mui.min.css" /}
	{css href="__ROOT__/static/user/fonts/iconfont.css" /}
	{css href="__ROOT__/static/user/css/styleme.css" /}
	{css href="__ROOT__/static/user/css/cy_style.css" /}
    <style>
		img{max-width:100%}
    	.cy_product_content div{margin: 0.5rem 0rem;}
    </style>
</head>
<body>
	<header class="mui-bar mui-bar-nav">
	    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" href="#"></a>
	    <h1 class="mui-title">产品详情</h1>
	</header>
	<div class="mui-content" ">
		<div id="slider" class="mui-slider" >
	  <div class="mui-slider-group mui-slider-loop">
	    <!-- 额外增加的一个节点(循环轮播：第一个节点是最后一张轮播) -->
	    <div class="mui-slider-item mui-slider-item-duplicate">
	      <a href="#">
	        <img src="{if $data.image1}{$data.image1}{else}__ROOT__/static/public/images/default.png{/if}">
	      </a>
	    </div>
	    <!-- 第一张 -->
	    <div class="mui-slider-item">
	      <a href="#">
	        <img src="{if $data.image1}{$data.image1}{else}__ROOT__/static/public/images/default.png{/if}">
	      </a>
	    </div>
	    <!-- 第二张 -->
	    <div class="mui-slider-item">
	      <a href="#">
	         <img src="{if $data.image2}{$data.image1}{else}__ROOT__/static/public/images/default.png{/if}">
	      </a>
	    </div>
	    <!-- 第三张 -->
	    <div class="mui-slider-item">
	      <a href="#">
	         <img src="{if $data.image3}{$data.image1}{else}__ROOT__/static/public/images/default.png{/if}">
	      </a>
	    </div>
	    <!-- 第四张 -->
	    <div class="mui-slider-item">
	      <a href="#">
	         <img src="{if $data.image4}{$data.image1}{else}__ROOT__/static/public/images/default.png{/if}">
	      </a>
	    </div>
	    <!-- 额外增加的一个节点(循环轮播：最后一个节点是第一张轮播) -->
	    <div class="mui-slider-item mui-slider-item-duplicate">
	      <a href="#">
	        <img src="{if $data.image4}{$data.image1}{else}__ROOT__/static/public/images/default.png{/if}">
	      </a>
	    </div>
	  </div>
	  <div class="mui-slider-indicator">
	    <div class="mui-indicator mui-active"></div>
	    <div class="mui-indicator"></div>
	    <div class="mui-indicator"></div>
	    <div class="mui-indicator"></div>
	  </div>
	</div>
	<script>
		//获得slider插件对象
var gallery = mui('.mui-slider');
gallery.slider({
  interval:2000//自动轮播周期，若为0则不自动播放，默认为0；
});
	</script>
	<div class="cy_product_content">
		<div>
			<div style="font-size: 1.2rem;">
				{$data.title}
			</div>
		</div>
		<div>
			<span style="color:red;font-size:2rem;">￥{$data.price}</span>
		</div>
		<div>
			<span>商家：</span>
			<a href="#"><span>{$data.uid}</span></a>
		</div>
		<div>
			<span>服务：</span>{$data.service}
		</div>
		<div>
			<span>详情：</span>
			{$data.content|htmlspecialchars_decode}
		</div>
	</div>
	<div style="position: fixed;bottom:0px;width: 100%;height: 2.5rem;background: #06C1AE;text-align: center;line-height: 2.4rem;">
		<span style="color: white;">立即下单</span>
	</div>
	</div>
	{js href="__ROOT__/static/user/js/jquery.nicescroll.min.js" /}
</body>
</html>